package org.jeecg.modules.meter.service.impl;

import org.jeecg.entity.meter.Meter;
import org.jeecg.modules.meter.entity.MeterUser;
import org.jeecg.modules.meter.mapper.MeterUserMapper;
import org.jeecg.modules.meter.service.IMeterUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 畅e用户手动绑定电表
 * @Author: jeecg-boot
 * @Date:   2019-12-05
 * @Version: V1.0
 */
@Service
public class MeterUserServiceImpl extends ServiceImpl<MeterUserMapper, MeterUser> implements IMeterUserService {

    @Autowired
    private MeterUserMapper meterUserMapper;

    @Override
    public List<Meter> findBindMeterByUserId(String userId, String meterType) {
        return meterUserMapper.findBindMeterByUserId(userId,meterType);
    }

    @Override
    public List<MeterUser> findByUserIdAndMeterId(String meterId, String userId) {
        return meterUserMapper.findByUserIdAndMeterId(meterId,userId);
    }
}
